{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid']))}">调研报告统计</a></li>
		<li><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid'],'act'=>'detail_list'))}">详细调研报告</a></li>
	</ul>

	{template 'survey_info'}
	<div class="panel panel-default">
		<div class="panel-heading">
			调研问题列表 <span style="height:16px;line-height:16px" class="label label-success">共 {$sinfo['num']} 人参与调研</span>
		</div>
		<div class="panel-body">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:60px;" class="row-first">ID</th>						
	                    <th style="width:300px;">标题</th>
						<th>统计</th>
					</tr>
				</thead>
				<tbody>
					{loop $question_list $row}
					{if $row['type'] !='text' && $row['type']!='textarea'}
						<tr>		
							<td class="row-first">{$row['sqid']}</td>
	                        <td>{$row['title']}</td>
	                        <td>
	                        	<table class="table">
	                        	{loop $row['totals'] $arr}
	                        	<tr>
	                        		<td width="200">{$arr['label']}</td>
	                        		<td>
	                        		<div class="progress progress-striped">
	                        			<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{$arr['rate']}" aria-valuemin="0" aria-valuemax="100" style="width: {$arr['rate']}%">{$arr['rate']}%</div>
	                        		</div>
	                        		</td>
	                        	</tr>
	                        	{/loop}
	                        </table>
	                        </td>
						</tr>
					{/if}
					{/loop}
				</tbody>
			</table>
		</div>
	</div>
</div>
{template 'common/footer'}